import request from '@/utils/request'

// 查询数据管理列表
export function listInterfaces(query) {
  return request({
    url: '/snowRemoving/interfaces/list',
    method: 'get',
    params: query
  })
}

// 查询数据管理详细
export function getInterfaces(id) {
  return request({
    url: '/snowRemoving/interfaces/' + id,
    method: 'get'
  })
}

// 新增数据管理
export function addInterfaces(data) {
  return request({
    url: '/snowRemoving/interfaces',
    method: 'post',
    data: data
  })
}

// 修改数据管理
export function updateInterfaces(data) {
  return request({
    url: '/snowRemoving/interfaces',
    method: 'put',
    data: data
  })
}

// 删除数据管理
export function delInterfaces(id) {
  return request({
    url: '/snowRemoving/interfaces/' + id,
    method: 'delete'
  })
}


// 查询展开数据管理详细
export function getExpand(id) {
  return request({
    url: '/snowRemoving/interfaces/getExpand/' + id,
    method: 'get'
  })
}

// 查询展开天气事件详细
export function getEventExpand(id) {
  return request({
    url: '/snowRemoving/interfaces/getEventExpand/' + id,
    method: 'get'
  })
}
